From: Sean Whitton Date: Wed, 11 Jun 2025 14:23:32 +0000 (+0100) Subject: Insert missing step to make use of directory tracking OSC codes X-Git-Tag: archive/raspbian/1%30.2+1-2+rpi1^2~2^2~24^2~52 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=df3fb94f09143285980348a3c6264ace913d3c73;p=emacs.git Insert missing step to make use of directory tracking OSC codes * doc/emacs/misc.texi (Interactive Shell): Say to add comint-osc-process-output to comint-output-filter-function. --- diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index c35afcf802c..4782fe673e0 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -955,6 +955,13 @@ at each prompt, for instance with the following command: printf "\e]7;file://%s%s\e\\" "$HOSTNAME" "$PWD" @end example +@noindent +Then tell Emacs to process the escape codes: + +@lisp +(add-hook 'comint-output-filter-functions #'comint-osc-process-output) +@end lisp + @vindex explicit-shell-file-name @cindex environment variables for subshells @cindex @env{ESHELL} environment variable @@ -1188,7 +1195,7 @@ supports some extend escape codes, like some of the @acronym{OSC} (Operating System Codes) if you put the following in your init file: @lisp -(add-hook 'comint-output-filter-functions 'comint-osc-process-output) +(add-hook 'comint-output-filter-functions #'comint-osc-process-output) @end lisp With this enabled, the output from, for instance, @code{ls